package cn.iocoder.yudao.module.system.convert.permission;

import cn.iocoder.yudao.module.system.repository.mybatis.domain.permission.Role;
import cn.iocoder.yudao.module.system.service.permission.bo.RoleCreateReqBO;
import cn.iocoder.yudao.module.system.vo.permission.role.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleConvert {

    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    Role convert(RoleUpdateReqVO bean);

    RoleRespVO convert(Role bean);

    Role convert(RoleCreateReqVO bean);

    List<RoleSimpleRespVO> convertList02(List<Role> list);

    List<RoleExcelVO> convertList03(List<Role> list);

    Role convert(RoleCreateReqBO bean);

}
